﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using WisDom.SmartTMS.Enums;

namespace WisDom.SmartTMS.Dtos
{
    /// <summary>
    /// 货主审计Dto
    /// </summary>
   public class ShipperAuditDto
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 货主姓名
        /// </summary>
        [StringLength(100)]
        [Required(ErrorMessage = "货主姓名不能为空")]
        public string ShipperName { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [StringLength(100)]
        [Required(ErrorMessage = "手机号不能为空")]
        public string MobilePhoto { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        [StringLength(100)]
        [Required(ErrorMessage = "单位名称不能为空")]
        public String CompanyName { get; set; }

        /// <summary>
        /// 联系地址
        /// </summary>
        [StringLength(100)]
        [Required(ErrorMessage = "联系地址不能为空")]
        public String Address { get; set; }

        /// <summary>
        /// 驾驶证有效期
        /// </summary>
        public DateTime? LicenseValidity { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(100)]
        [Required(ErrorMessage = "备注不能为空")]
        public String Remark { get; set; }

        /// <summary>
        /// 驾驶证照片
        /// </summary>
        [StringLength(100)]
        [Required(ErrorMessage = "驾驶证照片不能为空")]
        public String LlicencePhoto { get; set; }
        /// <summary>
        /// 业务编号ID
        /// </summary>
        public Guid BusinessCode { get; set; }

        /// <summary>
        /// 业务类别编号ID
        /// </summary>
        public BusinessType BusinessTypeCode { get; set; }

        /// <summary>
        /// 审核结果0审核中，1同意，2拒绝
        /// </summary>
        public AuditState State { get; set; }

        /// <summary>
        /// 最后审核结束时间
        /// </summary>
        public DateTime? AuditTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public Guid? CreatorID { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        [StringLength(100)]
        [Required(ErrorMessage = "创建人姓名不能为空")]
        public String CreatorRealName { get; set; }

        public List<AuidtLogsDto> auidtLogsDtos { get; set; }
    }
}
